package com.wr.springbootRabbitMqConsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "email.direct.queue")
@Component
public class DirectEmailConsumer {

    @RabbitHandler
    public void consumer(String message){
        System.out.println("email---》接收到消息："+message);
    }
}
